package com.example.wx.Dao;

import com.example.wx.Entity.Master;
import com.example.wx.Entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface MasterDao extends JpaRepository<Master,Integer> {

    @Query(value = "select * from master",nativeQuery = true)
    List<Master>  find();
}

